package com.pdwl.cashoutpay.dao;

import com.pdwl.cashoutpay.entity.Trade;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TradeMapper {
    int deleteByPrimaryKey(Integer oid);

    int insert(Trade record);

    int insertSelective(Trade record);

    Trade selectByPrimaryKey(Integer oid);

    List<Trade> getTradebytime(@Param("startTime") String startTime, @Param("endTime") String endTime);

    Trade findByOurOrderId(String  ourOrderId);

    Trade findByOrderId(String  orderId);

    int updateByPrimaryKeySelective(Trade record);

    int updateByOurOrderId(Trade trade);

    int updateByPrimaryKey(Trade record);
}